{block content}

<p><a href="{plink default}" class="button ui-state-default ui-corner-all" title="{!_'Back to permission management'}"><span class="ui-icon ui-icon-carat-1-w floatLeft">&nbsp;</span>&nbsp;{!_"Back to permission management"}</a></p>

<h1>{$title}</h1>

{* control addEdit *}

{$form->render('begin')}
{$form->render('errors')}
<table>
    <tr>
        <th>{$form['role_id']->getlabel()}</th>
        <th>{$form['resource_id']->getlabel()}</th>
        <th>{$form['privilege_id']->getlabel()}</th>
        <th>{$form['allowed']->getlabel()}</th>
    </tr>
    <tr>
        <td>{$form['role_id']->getcontrol()}</td>
        <td>{$form['resource_id']->getcontrol()}</td>
        <td>{$form['privilege_id']->getcontrol()}</td>
        <td>{$form['allowed']->getcontrol()}</td>
    </tr>
</table>
{if isset($form['add'])}
    {$form['add']->getcontrol()}
{/if}
{if isset($form['edit'])}
    {$form['edit']->getcontrol()}
{/if}
{$form['cancelClicked']->getcontrol()}
{$form->render('end')}